# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tcpick
pkgver=0.2.1
pkgrel=4
pkgdesc='TCP stream sniffer and connection tracker.'
groups=('blackarch' 'blackarch-sniffer')
arch=('x86_64' 'aarch64')
url='http://tcpick.sourceforge.net/'
license=('GPL')
depends=('libpcap')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('2dd3f2e54c6c86b4d1d320113b96977a6ffab2b0ea2b4e2b39585b18a28a314f9fd92d9e874d0350cee3fa54a99b48959c6b0db830a59d3c896c4561beb863b0')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --mandir=/usr/share/man

  make
}

package(){
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

